﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Providers.LiveControl.Server;
using static  Providers.LiveControl.Server.WindowApi;
namespace 测试子窗口的捕捉
{
    class Program
    {
        static void Main(string[] args)
        {
            var ptr = FindWindow(null, "1").ToInt32();
            while (true)
            {
               
                var rect = GetRect(ptr);

                Console.WriteLine(rect.Rect.ToRectangle().ToString());
                Console.ReadLine();
            }
           


        }
    }
}
